package e2e

import (
	"testing"

	"github.com/lab-online/pkg/e2e"
)

func (ctx *context) BeforeAll() {
}

type context struct {
	*e2e.Context
}

func (ctx *context) AfterAll() {
	ctx.Database.Exec("DELETE FROM classes")
	ctx.Database.Exec("DELETE FROM students")
	ctx.Database.Exec("DELETE FROM users")
	ctx.Database.Exec("DELETE FROM courses")
}

func Describe(ctx *e2e.Context) (string, func(*testing.T)) {
	return e2e.NewDescribe("classes", &context{ctx})
}
